package com.Ajava1704.tongbu;

/**
 * 作者: LCG
 * 日期: 2020/2/10 10:41
 * 描述:
 */
public class TestR2 implements Runnable {

    private Test00 test00;

    private Integer bb;


    @Override
    public void run() {
       try {
           TestR2.test2();
       }catch (Exception e){

       }
    }

    public synchronized void test1(){
        for (int i=0;i<10;i++){
            System.out.println("====="+Thread.currentThread().getName()+"======="+i);
        }
    }


    public static synchronized void test2(){

        for (int i=0;i<10;i++){
            System.out.println("====="+Thread.currentThread().getName()+"======="+i);
        }

    }

}
